From: Florian Müllner Date: Fri, 8 Jul 2016 15:50:35 +0000 (+0200) Subject: calendar-server: Fix a memory leak X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~800 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f5e1dc86cd67de9ef745933375426aad93caf315;p=gnome-shell.git calendar-server: Fix a memory leak App will take ownership of the location string when the timezone changes, but not when there was no change - free the memory in that case. https://bugzilla.gnome.org/show_bug.cgi?id=748226 --- diff --git a/src/calendar-server/gnome-shell-calendar-server.c b/src/calendar-server/gnome-shell-calendar-server.c index f5b1e5f9d..49f92ea22 100644 --- a/src/calendar-server/gnome-shell-calendar-server.c +++ b/src/calendar-server/gnome-shell-calendar-server.c @@ -526,6 +526,10 @@ app_update_timezone (App *app) app->timezone_location = location; print_debug ("Using timezone %s", app->timezone_location); } + else + { + g_free (location); + } } static gboolean